package com.ttg.web.dao;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ttg.model.po.QualityManageLadderRulePO;
import com.ttg.model.pojo.QualityManageLadderRule;

import java.math.BigDecimal;
import java.util.List;

/**
 * 质量管理-阶梯评价规则表(TblQualityManageLadderRule) dao
 *
 * @author chenyou
 * @datetime 2025-08-18 14:50:36
 */
public interface QualityManageLadderRuleDao extends IService<QualityManageLadderRule>{

    QualityManageLadderRule getByUnique(Integer ruleDimType,Integer ruleType,Integer orderId,Long orgNo);

    List<QualityManageLadderRule> getByParam(QualityManageLadderRulePO po);

    void saveOrUpdateBatch(List<QualityManageLadderRule> rules,Integer ruleDimType, Integer ruleType);

    BigDecimal getRuleScore(QualityManageLadderRulePO po);

    List<QualityManageLadderRule> getByDimType(Integer ruleDimType);

}

